class CreateDorms < ActiveRecord::Migration[6.1]
  def change
    create_table :dorms do |t|
      t.string :name
      t.decimal :electric_balance
      t.integer :hydropower_id

      t.timestamps
    end
    add_index :dorms, :hydropower_id
  end
end
